package top.littleze.aiattendance.service;

import top.littleze.aiattendance.entity.*;
import top.littleze.aiattendance.utils.page.Reply;

import java.util.List;

/**
 * @Author ZhaoGengze
 * @Date 2021/7/9 11:38
 */

public interface TeacherService {

    /**
     * 授课列表还查询
     * @param teacherId
     * @param page
     * @param limit
     * @return
     */
    Reply<List<AttendanceCourseEntity>> queryTeacherCourse(String teacherId, int page, int limit);

    /**
     * 课程学生名单查询
     * @param courseId
     * @param page
     * @param limit
     * @return
     */
    Reply<List<AttendanceStudentEntity>> queryStudentList(String courseId, int page, int limit);

    /**
     * 删除课程
     * @param courseId
     * @return
     */
    Reply<Void> deleteCourse(String courseId);

    /**
     * 修改课程信息
     * @param courseEntity
     * @return
     */
    Reply<Void> updateCourse(AttendanceCourseEntity courseEntity);

    /**
     * 新建课程
     * @param courseEntity
     * @return
     */
    Reply<Void> insertCourse(AttendanceCourseEntity courseEntity);

    /**
     * 出勤查询
     * @param courseId
     * @return
     */
    Reply<List<AttendanceLogEntity>> queryAttendance(String courseId);

    /**
     * 根据教师id查询课程用户
     * @return
     */
    Reply<List<AttendanceSCEntity>> queryCourseStudentList(String teacherId, int page, int limit);
}
